package com.fieldchain.ex.fa100.bean;

import java.util.List;

/**
 * Created by biyunlong
 * Email: 1225198434@qq.com
 * Data:  2018/9/27
 */
public class TradBean {


    /**
     * dealRecord : [{"date":1539670251,"amount":5,"price":1.2100000381469727,"sorc":1539670251104,"type":1}]
     * priceSort : {"sellSort":[[2,10]],"dealRatioCny":6.5,"change":0,"dealRatioUsd":1,"newPrice":1.2100000381469727,"buySort":[[1.1200000047683716,10],[1,10]]}
     */

    private PriceSortBean priceSort;
    private List<DealRecordBean> dealRecord;

    public PriceSortBean getPriceSort() {
        return priceSort;
    }

    public void setPriceSort(PriceSortBean priceSort) {
        this.priceSort = priceSort;
    }

    public List<DealRecordBean> getDealRecord() {
        return dealRecord;
    }

    public void setDealRecord(List<DealRecordBean> dealRecord) {
        this.dealRecord = dealRecord;
    }

    public static class PriceSortBean {
        /**
         * sellSort : [[2,10]]
         * dealRatioCny : 6.5
         * change : 0
         * dealRatioUsd : 1
         * newPrice : 1.2100000381469727
         * buySort : [[1.1200000047683716,10],[1,10]]
         */

        private double dealRatioCny;
        private double change;
        private double dealRatioUsd;
        private double newPrice;
        private List<List<Double>> sellSort;
        private List<List<Double>> buySort;

        public double getDealRatioCny() {
            return dealRatioCny;
        }

        public void setDealRatioCny(double dealRatioCny) {
            this.dealRatioCny = dealRatioCny;
        }

        public double getChange() {
            return change;
        }

        public void setChange(double change) {
            this.change = change;
        }

        public double getDealRatioUsd() {
            return dealRatioUsd;
        }

        public void setDealRatioUsd(double dealRatioUsd) {
            this.dealRatioUsd = dealRatioUsd;
        }

        public double getNewPrice() {
            return newPrice;
        }

        public void setNewPrice(double newPrice) {
            this.newPrice = newPrice;
        }

        public List<List<Double>> getSellSort() {
            return sellSort;
        }

        public void setSellSort(List<List<Double>> sellSort) {
            this.sellSort = sellSort;
        }

        public List<List<Double>> getBuySort() {
            return buySort;
        }

        public void setBuySort(List<List<Double>> buySort) {
            this.buySort = buySort;
        }
    }

    public static class DealRecordBean {
        /**
         * date : 1539670251
         * amount : 5
         * price : 1.2100000381469727
         * sorc : 1539670251104
         * type : 1
         */

        private long date;
        private double amount;
        private double price;
        private long sorc;
        private int type;

        public long getDate() {
            return date;
        }

        public void setDate(long date) {
            this.date = date;
        }

        public double getAmount() {
            return amount;
        }

        public void setAmount(double amount) {
            this.amount = amount;
        }

        public double getPrice() {
            return price;
        }

        public void setPrice(double price) {
            this.price = price;
        }

        public long getSorc() {
            return sorc;
        }

        public void setSorc(long sorc) {
            this.sorc = sorc;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }
    }
}
